<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[%$lngpack.forumtitle%] - [%$lngpack.sitename%]</title>
<meta name="keywords" content="[%$lngpack.keyword%]" />
<meta name="description" content="[%$lngpack.description%]" />
<link href="[%$url%]templates/default/style/all.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/default/style/news.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/default/style/goods.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/default/style/public.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/default/style/forum.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/default/style/shCore.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/default/style/member.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/default/style/shThemeDefault.css"  id="shTheme" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="[%$url%]js/jquery.js"></script>
<script type="text/javascript" src="[%$url%]js/basicrun.js"></script>
</head>

<body>
<div class="container_out">
	[%include file="default/cn/public/head.html"%]
	[%if $out=='forumindex'%]
	<!--论坛主页-->
	<!--当前浏览位置-->
	<div class="container_inner">
	<div class="lineheight"></div>
	<div class="pageadd">您现在的位置：<a href="[%$homelink%]">首页</a> >> <strong>论坛留言</strong></div>
	<div class="lineheight"></div>
	<div class="pageleft row">
		<div class="pagelft_tab02">论坛版块</div>
		<div class="pagelft_tab01">[%beark name=bbstypelist class=$lng,0%]</div>
		<div class="lineheight"></div>
		<div class="small_bann"></div>
	</div>
	<!--右边的内容-->
	<div class="content_right row">
			<div class="titlepic"><img alt="bann" src="[%$url%]templates/default/images/temp/produbann.jpg" width="740"/></div>
			<div class="lineheight"></div>
			[% if count($typelist) > 0 %]
			[%forlist from=$typelist key=i%]
			<div class="botton-title3"><span class="title"><a class="infolink04" title="[%$typelist[i].typename%]" href="[%$typelist[i].link%]">[%$typelist[i].typename%]</a></span><span class="bottoninput"><a class="infolink04" href="[%$typelist[i].addlink%]">发布话题</a></span></div>
			<div class="forum-indexlist">
				<div id="text">
					[% if $typelist[i].bbslist|count > 0 %]
					<ul>
						[%forlist from=$typelist[i].bbslist key=ii%]
						<li>
							<span id="title">[[%$typelist[i].bbslist[ii].labelname%]] <a target="_blank" class="infolink02" href="[%$typelist[i].bbslist[ii].link%]" title="[%$typelist[i].bbslist[ii].title%]">[%$typelist[i].bbslist[ii].title|cutstr(40,'...')%]</a> ([%$typelist[i].bbslist[ii].click%]阅/[%$typelist[i].bbslist[ii].replynum%]回)</span>
							<span id="userinfo"><u>[%$typelist[i].bbslist[ii].author%]</u> 于[%$typelist[i].bbslist[ii].addtime|timeformat(3)%]发布</span>
						</li>
						[%/forlist%]
					</ul>
					[%else%]
					暂无话题！
					[%/if%]
				</div>
			</div>
			<div class="lineheight"></div>
			[%/forlist%]
			[%/if%]
		</div>
	</div>
	[%elseif $out=='forumlist'%]
	<!--论坛列表-->
	<div class="container_inner">
	<div class="lineheight"></div>
	<div class="pageadd">您现在的位置：[%beark name=path class=$lng,forum,$type.btid%]</div>
	<div class="lineheight"></div>
	<div class="pageleft row">
		<div class="pagelft_tab02">论坛版块</div>
		<div class="pagelft_tab01">[%beark name=bbstypelist class=$lng,$type.btid%]</div>
		<div class="lineheight"></div>
		<div class="small_bann"></div>
	</div>

	<!--右边的内容-->
	<div class="content_right row">
			<div class="titlepic"></div>
			<div class="lineheight"></div>
			<div class="content-outline">
				<div id="topline"></div>
				<div id="text">
					<div id="titlele2">[%$type.typename%] (<a target="_blank" href="[%$type.addlink%]">发布话题</a>)</div>
					[% if count($array) > 0 %]
					<div class="forumlist">
						<ul>
							[%forlist from=$array key=ii%]
							<li id="forumli">
								<span id="title">[[%$array[ii].labelname%]] <a [%if $array[ii].homepic==1%]class="infolink07"[%else%]class="infolink02"[%/if%] href="[%$array[ii].link%]">[%$array[ii].title%]</a> ([%$array[ii].click%]阅/[%$array[ii].replynum%]回)</span>
								<span id="userinfo"><u>[%$array[ii].author%]</u> 于[%$array[ii].addtime|timeformat(4)%]发布</span>
							</li>
							[%/forlist%]
						</ul>
					</div>
					<div id="pagelist">
						<div id="Pagination" class="pagination">[%$pagebotton%]</div>
					</div>
					[%else%]
					<div id="list" id="center">
					      <b>非常抱歉，暂无相关话题</b>
					</div>
					[%/if%]
				</div>
				<div id="bottomline"></div>
			</div>
		</div>
	</div>
	[%elseif $out=='forumread'%]
	<!--论坛阅读-->
	<script type="text/javascript" src="[%$url%]public/tinyMCE/tiny_mce.js"></script>
	<script type="text/javascript" src="[%$url%]js/forumcreate.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shCore.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushBash.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushCpp.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushCSharp.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushCss.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushDiff.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushJava.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushJScript.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushPhp.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushSql.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushXml.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushAS3.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushJavaFX.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushColdFusion.js"></script>
	<script type="text/javascript">
	SyntaxHighlighter.config.clipboardSwf = "[%$url%]js/code/clipboard.swf";
	SyntaxHighlighter.all();
	var title_empty = "[%$lngpack.forum_title_err%]";
	var content_empty = "[%$lngpack.forum_content_err%]";
	var seccode_empty = "[%$lngpack.seescodeerr%]";
	</script>
	<div class="container_inner">
	<div class="lineheight"></div>
	<div class="pageadd">您现在的位置：<a href="[%$homelink%]">首页</a> >> <a href="[%$type.link%]">[%$type.typename%]</a></div>
	<div class="lineheight"></div>
	<div class="pageleft row">
		<div class="pagelft_tab02">论坛版块</div>
		<div class="pagelft_tab01">[%beark name=bbstypelist class=$lng,$type.btid%]</div>
		<div class="lineheight"></div>
		<div class="small_bann"></div>
	</div>
	<!--右边的内容-->
	<div class="content_right row">
			<div class="titlepic"></div>
			<div class="lineheight"></div>
			<div class="read_textoutline2">
				<div id="titleforum"><span id="name">主题([%$read.labelname%])：[%$read.title%]</span></div>
				<div id="line"></div>
				<div id="contentlist">[%$read.content%]</div>
				<div id="line"></div>
				<div id="contenttext"><span id="author">作者：<u>[%$read.author%]</u></span> <span id="time">发表时间：[%$read.addtime|timeformat(3)%] 阅读:[%$read.click%] 回复：[%$read.replynum%]</span> </div>
			</div>
			[% if count($array) > 0 %]
			[%forlist from=$array key=ii%]
			<div class="lineheight"></div>
			<div class="read_textoutline2">
				<div id="retitleforum"><span id="name">回复：[%$array[ii].title%]</span></div>
				<div id="line"></div>
				<div id="contentlist">[%$array[ii].content%]</div>
				<div id="line"></div>
				<div id="contenttext"><span id="author">作者：<u>[%$array[ii].author%]</u></span> <span id="time">发表时间：[%$array[ii].addtime|timeformat(4)%]</span></div>
			</div>
			[%/forlist%]
			<div class="lineheight"></div>
			<div id="pagelist">
				<div id="Pagination" class="pagination">[%$pagebotton%]</div>
			</div>
			[%else%]
			<div class="lineheight"></div>
			<div id="list" class="read_textoutline2">
				<div id="contentlist"><b>暂无人回复该主题！</b></div>
			</div>
			[%/if%]
			[%if $read.noreply==1%]
			<div class="lineheight"></div>
			<div class="readtext">
				<div class="readicon">评论回复</div>
				<div class="readline"></div>
				<div class="sendform">
				[%if $member.userid!=0 || $is_anonymous==1%]
				<form name="rebbsmainform" id="rebbsmainform" method="post" action="[%$mlink.forumsave%]" onsubmit="return reforumcreat('[%$bbs_isseccode%]')">
				<input type="hidden" name="inputclass" value="reinput">
				<input type="hidden" name="userid" value="[%$member.userid%]">
				<input type="hidden" name="nowuserid" value="[%$read.userid%]">
				<input type="hidden" name="linkebid" value="[%$read.bid%]">
				<input type="hidden" name="lng" value="[%$read.lng%]">
				<input type="hidden" name="btid" value="[%$read.btid%]">
				<input type="hidden" name="blid" value="[%$read.blid%]">
				<input type="hidden" name="purview" value="[%$read.purview%]">
				<input type="hidden" name="noreply" value="[%$read.noreply%]">
				<table border="0">
					<tr>
						<td width="20%" class="trtitle01">主题：</td>
						<td width="80%" class="trtitle02"><input type="text" name="title" maxlength="200" size="80" value="回复：[%$read.title%]" class="smallInput"></td>
					</tr>
					<tr>
						<td class="trtitle01">内容：</td>
						<td class="trtitle02">
							<ul class="hrefbotton">
								<li><a class="linimage" href="javascript:;" onmousedown="tinyMCE.get('content').show();">显示编辑界面</a></li>
								<li><a class="linimage" href="javascript:;" onmousedown="tinyMCE.get('content').hide();">显示代码界面</a></li>
							</ul><br>
							<textarea name="content" rows="30" id="content" style="width: 98%" class="smallInput"></textarea>
						</td>
					</tr>
					[%if $bbs_isseccode==1%]
					<tr>
						<td class="trtitle01">[%$lngpack.verification%]</td>
						<td class="trtitle02">
							<input type="text" id="code" name="seccode" maxlength="4" size="3" style="text-transform: uppercase;"/>
							<img title="[%$lngpack.verification%]" id="seccodesrc" onclick="sessionimg('seccodesrc','[%$url%]')" src="[%$seccodelink%]" style="cursor: pointer;" align="absmiddle"/>
						</td>
					</tr>
					[%/if%]
					<tr class="trstyle2">
						<td>  </td>
						<td class="trtitle02"><input type="submit" name="Submit" id="submit" value="确认回复" class="inputsubmit01"></td>
					</tr>
				</table>
				</form>
				[%else%]
				<table border="0">
					<tr>
						<td class="trtitle02">[%beark name=login class=$lng%]</td>
					</tr>
				</table>
				[%/if%]
				</div>
				<div class="lineheight"></div>
			</div>
			[%/if%]
		</div>
	</div>
	[%elseif $out=='forumadd'%]
	<!--论坛添加-->
	<script type="text/javascript" src="[%$url%]public/tinyMCE/tiny_mce.js"></script>
	<script type="text/javascript" src="[%$url%]js/forumcreate.js"></script>
	<script type="text/javascript">
	var title_empty = "[%$lngpack.forum_title_err%]";
	var btid_empty = "[%$lngpack.forum_btid_err%]";
	var content_empty = "[%$lngpack.forum_content_err%]";
	var seccode_empty = "[%$lngpack.seescodeerr%]";
	</script>
	<div class="container_inner">
	<div class="lineheight"></div>
	<div class="bann"><img src="[%$url%]templates/default/images/temp/bann.jpg" alt="bann"/></div>
	<div class="lineheight"></div>
		<div class="pageleft row">
		<div class="pagelft_tab02">会员中心</div>
		<div class="pagelft_tab01">[%beark name=memmenu class=$lng%]</div>
		<div class="lineheight"></div>
	</div>
	<div class="content_right row">
		<div class="outcenter">
			<div class="incenter">您现在的位置：<a href="[%$homelink%]">首页</a>－<strong>发布话题</strong></div>
		</div>
		<div class="lineheight"></div>
		<div class="lineheight"></div>
		<div class="outcenter">
			<div class="incenter">
				<div class="p01">
				<!--表单开始-->
				<form name="bbsmainform" id="bbsmainform" method="post" action="[%$mlink.forumsave%]" onsubmit="return forumcreat('[%$bbs_isseccode%]')">
				<input type="hidden" name="upurl" value="[%$upurllist%]">
				<input type="hidden" name="inputclass" value="input">
				<input type="hidden" name="userid" value="[%$member.userid%]">
				<input type="hidden" name="lng" value="[%$lng%]">
				    <div class="memberreg">
				       <div class="messagetitle">
						<div id="pic"><img src="[%$url%]templates/default/images/lightbulb.gif" alt="bann"/></div>
						<div id="title" class="font03 colorgreen strong">发布话题</div>
				       </div>
					<div class="line"></div>
					<div class="regcode">
					     <div class="title">标题</div>
					     <div class="input"><input type="text" name="title" maxlength="200" size="50" class="smallInput"></div>
					</div>
					<div class="regcode">
					    <div class="title">请选择讨论区</div>
					    <div class="input">
						<select size="1" name="btid" class="select" id="btid">
							<option value="0">分类</option>
							[%forlist from=$typelist key=i%]
							 <option [%$typelist[i].selected%] value="[%$typelist[i].btid%]">[%$typelist[i].typename%]</option>
							[%/forlist%]
						</select>
					    </div>
					</div>
					<div class="regcode">
					    <div class="title">话题类型</div>
					    <div class="input">
						   [%forlist from=$label key=i%]
						   <input type="radio" value="1" name="blid" [%if $label[i].selected=='selected'%]checked[%/if%]> [%$label[i].labelname%]&nbsp;
					           [%/forlist%]
					    </div>
					</div>
					<div class="regcode">
					    <div class="title">是否允许回复</div>
					    <div class="input">
						   <input type="radio" value="1" name="noreply" checked> 是&nbsp;
					           <input type="radio" value="0" name="noreply"> 否&nbsp;
					    </div>
					</div>
					<div class="regcode">
					    <div class="title">内容</div>
					    <div class="input">
						<ul class="hrefbotton">
							<li><a class="linimage" href="javascript:;" onmousedown="tinyMCE.get('content').show();">显示编辑界面</a></li>
							<li><a class="linimage" href="javascript:;" onmousedown="tinyMCE.get('content').hide();">显示代码界面</a></li>
						</ul><br>
						<textarea name="content" rows="30" id="content" style="width: 98%" class="smallInput"></textarea>
					    </div>
					</div>
					[%if $bbs_isseccode==1%]
					<div class="regcode">
					     <div class="title">[%$lngpack.verification%]</div>
					     <div class="input">
							<input type="text" id="code" name="seccode" maxlength="4" size="3" style="text-transform: uppercase;"/>
							<img title="[%$lngpack.verification%]" id="seccodesrc" onclick="sessionimg('seccodesrc','[%$url%]')" src="[%$seccodelink%]" style="cursor: pointer;" align="absmiddle"/>
					     </div>
					</div>
					[%/if%]
					<div class="enter">
					    <input name="submit" type="submit" id="submit" class="inputsubmit01" value="发布话题" />
					</div>
				    </div>
				</form>
				<!--表单结束-->
				</div>
			</div>
		</div>
	</div>
</div>
	[%/if%]
	<!--版权声明-->
[%include file="default/cn/public/fotter.html"%]
</div>
</body>

</html>
